/**
 * Copyright (c) 2017-2017 All Rights Reserved.
 */
package com.zbest.zpay.exchange.integration.gw;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zbest.zpay.service.gw.MessageSenderService;
import com.zbest.zpay.service.gw.model.GwResult;

/**
 * 
 *
 * @author Administrator
 * @version $Id: GwClientImpl.java, v 0.1 2017-5-13 下午10:58:57 Administrator Exp $
 */
@Service("gwClient")
public class GwClientImpl implements GwClient {

    @Resource
    private MessageSenderService messageSenderService;

    /** 
     * @see com.zbest.zpay.exchange.integration.gw.GwClient#syncSend(java.lang.String, java.util.Map)
     */
    @Override
    public GwResult syncSend(String channelId, Map<String, Object> data) {

        GwResult gwResult = messageSenderService.syncSend(channelId, data);
        return gwResult;

    }

    /** 
     * @see com.zbest.zpay.exchange.integration.gw.GwClient#assemble(java.lang.String, java.util.Map)
     */
    @Override
    public GwResult assemble(String channelId, Map<String, Object> data) {
        GwResult gwResult = messageSenderService.assemble(channelId, data);
        return gwResult;
    }

}
